Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom authorities #1362

Closed
wants to merge 22 commits into from
Closed

Custom authorities #1362

wants to merge 22 commits into from

Conversation

abitmore
Copy link
Member

@abitmore abitmore commented Oct 6, 2018

Work in progress for BSIP40 / #1285.

Not ready for merge.

Task list:

  • new objects (definition/struct)
  • new operations
    • definition / struct
    • validation
    • evaluation / apply
  • handle (maybe clear) expired objects
  • verify authority (for all operations, check if custom authorities apply)
  • API
    • query for new objects with meaningful parameters (by account, by time and etc)
    • maybe update get_required_signatures, get_potential_signatures, verify_authority and etc
  • hard fork protection code
    • evaluator of new operations
    • proposal_create_operation
    • committee_update_parameters_operation (for changing fee schedule)

template<typename OpType>
result_type operator()( const OpType& ) // Note: the parameter is a reference of *nullptr, we should not use it
{
FC_ASSERT( _restriction.member < fc::reflector<OpType>::total_member_count,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We call visit_local_member below, so it makes more sense to check local_member_count rather than total_member_count here.

void validate_restriction_details( const restriction& r, unsigned_int op_type )
{
restriction_validation_visitor vtor( r );
switch( op_type.value )
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to refactor due to changes on static_variant: bitshares/bitshares-fc#79

@abitmore
Copy link
Member Author

Work in progress here: blockops-de#1

@nathanielhourt nathanielhourt self-assigned this Feb 20, 2019
@abitmore
Copy link
Member Author

Closing in favor of #1860.

@abitmore abitmore closed this Jul 20, 2019
@abitmore abitmore deleted the 1285-cust-auth branch March 2, 2020 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants